
<template>
  <router-view />
</template>
<script lang="ts" setup>
    import {
    onMounted,
    version
  } from "vue";
  import { useAppStore } from '@/store/modules/app';
  const appStore = useAppStore();
  onMounted(()=>{
    console.log('vue',version);
    window.addEventListener('beforeunload',(event:any)=>beforeunloadHandler())
  })
  const beforeunloadHandler=()=>{
      console.info("刷新,更新重新加载路由");
      appStore.addRouteHas(true);
  }
</script>>
<style lang="scss">
#nprogress .bar {
  height: 2px !important;
}
</style>
